Repository navigation
Modernize the guide into community-editable chapters - #19
Merged
Merged
Conversation
- Split README into 14 Markdown chapters under chapters/ with a chapters.json manifest that powers purutuladhar.com/python-for-sys-admin - Rewrite content for Python 3.10+: subprocess.run, pathlib, f-strings, OSError, UTC datetimes, fixed broken examples - New chapters/sections: lab setup (iximiuz Labs playground), SQLite, socket - Sync examples/ with chapter scripts (all verified to run) - Add CONTRIBUTING.md, chapter issue template and help-wanted list - New README with website, playground, /step-by-step skill and star CTA Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested on the iximiuz Labs Python playground (Ubuntu 24.04, Python 3.14): - port_check.py hung on google.com:81 (timeout per resolved address); use github.com targets and a 3s timeout, explain the pitfall - sweep.py scanned a hard-coded 10.0.0.0/24; take NETWORK and PORT args - nested_sequences_flattened.py: collections.Iterable was removed, and the generator yielded sublists too - remove snmp_discover.py (imports modules that never existed) and sys_02.py (duplicate of argv_02.py) - make every inline snippet self-contained; replace bc (not installed) with sort in the subprocess input example - require Python 3.11+ (datetime.UTC) - add scripts/test_examples.sh, scripts/check_snippets.py and a GitHub Actions workflow that runs both on 3.11 and 3.14 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/etc/ssh contains root-only host keys, so make_archive raised PermissionError for normal users (caught by testing in the playground). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Tested end to end in the iximiuz Labs Python playground (Ubuntu 24.04), on Python 3.14.10 and the system Python 3.12.3:
Fixed along the way: Until this is merged, 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns the single 1,170-line README into a modern, community-driven guide that also powers the new website at https://purutuladhar.com/python-for-sys-admin/.
What changed
chapters/, ordered bychapters/chapters.json. The website loads them live frommain, so merged contributions show up on the site automatically.subprocess.run()instead ofcall/check_output,pathlib,print(..., file=sys.stderr),OSError,encoding="utf-8", UTC-awaredatetime,tempfile.mkstempinstead of the removedos.tmpnam, and docs links moved from 3.7 to 3.len(argv)NameError, missingfprefix in'error: {error}', writing bytes to a text file).examples/synced with the chapter scripts. All of them were run locally.CONTRIBUTING.md, a chapter issue template, and a "help wanted" list of 16 topics shown on the website./step-by-stepskill, and a request to star the repo.Merge order
Merge this before the personal-website PR, because the site reads
chapters/chapters.jsonfrommain.Follow-up
assets/playground-demo.gif. The website shows it automatically once it exists. Then uncomment the GIF line inchapters/01-set-up-your-lab.md.🤖 Generated with Claude Code